ActiveAdmin.register_page "IndexDashboard" do
  menu priority: 10, label: '大盘看板'

  content title: "" do

    columns '' do
      column do
        link_to "同花顺概念板块个股新增概念汇总", "https://t.10jqka.com.cn/565632383/?posttype=post", target: "_blank"
      end
      column do
        link_to "同花顺数据可视化", "https://t.10jqka.com.cn/494854872/?posttype=post", target: "_blank"
      end
      column do
        link_to "涨停看板", admin_limitdashboard_path, target: "_blank"
      end
      column do
        link_to "买点看板", admin_stockbpdashboard_path, target: "_blank"
      end

      column do
      end
    end
    columns do
      column do
        h3 "分析板块"
        h5 "rake ths:choice_block['N'] # 【盘中】同花顺自选板块近期涨幅与大盘关系，近期新出现涨幅板块"
        h5 "rake ths:choice_block['I'] # 【盘中】同花顺自选板块近期涨幅与大盘关系，近期新出现涨幅板块"
        h5 "rake block:start_end_time_block_ranks['20230601','20230630'] # 【每日复盘】 指定时间段内涨幅最大的板块"
      end

      column do
        h3 "分析个股"
        h5 "rake block:latest_days_change_up2['60','885947.TI'] # 【盘中】某板块最近 days 天涨幅超过2%，且成分股涨幅超过4%"
        h5 "rake block:common_stocks['885879.TI-886015.TI-885769.TI-881140.TI'] # 指定几个板块共同的股票"
        h1 "rake trade:check_stock['600011'] # 买前必看"
      end
    end
    div class: "blank_slate_container" do
      iframe src: "https://q.10jqka.com.cn/",
             style: "width: 1600px; height: 718px; border: none; border-radius: 8px;"
      iframe src: "https://stock.10jqka.com.cn/fupan/",
             style: "width: 1600px; height: 2800px; border: none; border-radius: 8px;"
    end
  end
end